home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / CMPRComponent.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  2.9 KB  |  116 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        CMPRComponent.a
  3. ;
  4. ;    Contains:    ColorSync ProfileResponder Component API
  5. ;
  6. ;    Version:    Technology:    ColorSync 1.0
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1993-1998 by Apple Computer, Inc. All rights reserved.
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__CMPRCOMPONENT__') = 'UNDEFINED' THEN
  18. __CMPRCOMPONENT__ SET 1
  19.  
  20.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  21.     include 'MacTypes.a'
  22.     ENDIF
  23.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  24.     include 'Quickdraw.a'
  25.     ENDIF
  26.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  27.     include 'Components.a'
  28.     ENDIF
  29.     IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
  30.     include 'CMApplication.a'
  31.     ENDIF
  32.  
  33.  
  34. CMPRInterfaceVersion            EQU        0
  35. ;  Component function selectors 
  36.  
  37. kCMPRGetProfile                    EQU        0
  38. kCMPRSetProfile                    EQU        1
  39. kCMPRSetProfileDescription        EQU        2
  40. kCMPRGetIndexedProfile            EQU        3
  41. kCMPRDeleteDeviceProfile        EQU        4
  42.  
  43. ;
  44. ; pascal CMError CMGetProfile(ComponentInstance pr, CMProfileHandle aProfile, CMProfileHandle *returnedProfile)
  45. ;
  46.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  47.         Macro
  48.         _CMGetProfile
  49.             move.l              #$00080000,-(sp)
  50.             moveq               #0,D0
  51.             dc.w                $A82A
  52.         EndM
  53.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  54.         IMPORT_CFM_FUNCTION CMGetProfile
  55.     ENDIF
  56.  
  57. ;
  58. ; pascal CMError CMSetProfile(ComponentInstance pr, CMProfileHandle newProfile)
  59. ;
  60.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  61.         Macro
  62.         _CMSetProfile
  63.             move.l              #$00040001,-(sp)
  64.             moveq               #0,D0
  65.             dc.w                $A82A
  66.         EndM
  67.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  68.         IMPORT_CFM_FUNCTION CMSetProfile
  69.     ENDIF
  70.  
  71. ;
  72. ; pascal CMError CMSetProfileDescription(ComponentInstance pr, long DeviceData, CMProfileHandle hProfile)
  73. ;
  74.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  75.         Macro
  76.         _CMSetProfileDescription
  77.             move.l              #$00080002,-(sp)
  78.             moveq               #0,D0
  79.             dc.w                $A82A
  80.         EndM
  81.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  82.         IMPORT_CFM_FUNCTION CMSetProfileDescription
  83.     ENDIF
  84.  
  85. ;
  86. ; pascal CMError CMGetIndexedProfile(ComponentInstance pr, CMProfileSearchRecordHandle search, CMProfileHandle *returnProfile, long *index)
  87. ;
  88.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  89.         Macro
  90.         _CMGetIndexedProfile
  91.             move.l              #$000C0003,-(sp)
  92.             moveq               #0,D0
  93.             dc.w                $A82A
  94.         EndM
  95.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  96.         IMPORT_CFM_FUNCTION CMGetIndexedProfile
  97.     ENDIF
  98.  
  99. ;
  100. ; pascal CMError CMDeleteDeviceProfile(ComponentInstance pr, CMProfileHandle deleteMe)
  101. ;
  102.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  103.         Macro
  104.         _CMDeleteDeviceProfile
  105.             move.l              #$00040004,-(sp)
  106.             moveq               #0,D0
  107.             dc.w                $A82A
  108.         EndM
  109.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  110.         IMPORT_CFM_FUNCTION CMDeleteDeviceProfile
  111.     ENDIF
  112.  
  113.  
  114.     ENDIF ; __CMPRCOMPONENT__ 
  115.  
  116.